<?php
/**
 *============================================================================
 * Cornice PHP Framework & Website Builder
 * Freeware (f) 2011 by Inforo Software & Computer
 *============================================================================
 */
 
/**
 * Class used as translator for static HTMLs
 * @author Nicola Dinh
 * @version 2011.04.2313
 */
class text {

  /**
   * Default instance level constructor
   * Just decorative, should not be called due to having only static methods
   */
  public function __construct() {
    //
  }
  
  /**
   * Print a text of current language (ie. a text in 'texts/??/$name.php')
   * @param string $name The name of text to print
   */
  public function render($name) {
    $cur_lang = helper::get_cur_lang();
    require("texts/$cur_lang/$name.php");
  }
}